<template>
    <div>
        <ul class="list">
            <li v-for="item in aaa" :key="item">{{item}}</li>
        </ul>
        <input v-model="value1" />
        <input type="button" value="子传父" @click="senddata" />
    </div>
</template>
<script>
export default {
    props: ['aaa'], // 在作用域data中加入 list用于接收父页面的属性
    data() {
        return {
            value1: ''
        }
    },
    created() {
        
        console.info(this.$props)
    },
    methods: {
        senddata() {
            this.$emit('bbb', this.value1, 'flkasfjklas', {ename:"tom"})
        }
    }
}
</script>
<style scoped>
.list {
    list-style: none;
    padding-left: 0px;
}
</style>